package vn.aptech.scrumgroup.model;

import java.util.ArrayList;
import java.util.List;

import vn.aptech.scrumgroup.event.MoveRoundEvent;
import vn.aptech.scrumgroup.event.MoveRoundListener;

public abstract class AbstractOnCircle extends AbstractBaseModel implements OnCircle{
	
	public AbstractOnCircle(int backColor, int foreColor){
		super(backColor, foreColor);
	}
	
	List<MoveRoundListener> observers = new ArrayList<MoveRoundListener>();
	
	public void addMoveRoundListener(MoveRoundListener listener){
		observers.add(listener);
	}
	
	public void fireMoveRoundEvent(MoveRoundEvent evt){
		for (MoveRoundListener ml:observers)
			ml.actionPerformed(evt);
	} 
}
